//resources.cpp

#include "resources.h"

//Object's default constructor. Initializes all of the object's private variables.
resources::resources()
{
  counter =0;
}

//This function increments the object's counter to reflect the user gaining resources.
void resources::increment()
{
  counter=counter+1;
}

//This function decrements the object's counter to reflect the user gaining resources.
void resources::decrement(int x)
{
  counter = counter - x;
}

//This function returns the object's counter. 
int resources::getCounter()
{
  return counter;
}

//This is the object's destructor.
resources::~resources()
{
}
